﻿import request from '/@/utils/request';
enum Api {
  AddIotdeviceconnect = '/api/iotdeviceconnect/add',
  DeleteIotdeviceconnect = '/api/iotdeviceconnect/delete',
  UpdateIotdeviceconnect = '/api/iotdeviceconnect/update',
  PageIotdeviceconnect = '/api/iotdeviceconnect/page',
  DetailIotdeviceconnect = '/api/iotdeviceconnect/detail',
}

// 增加设备数据采集
export const addIotdeviceconnect = (params?: any) =>
	request({
		url: Api.AddIotdeviceconnect,
		method: 'post',
		data: params,
	});

// 删除设备数据采集
export const deleteIotdeviceconnect = (params?: any) => 
	request({
			url: Api.DeleteIotdeviceconnect,
			method: 'post',
			data: params,
		});

// 编辑设备数据采集
export const updateIotdeviceconnect = (params?: any) => 
	request({
			url: Api.UpdateIotdeviceconnect,
			method: 'post',
			data: params,
		});

// 分页查询设备数据采集
export const pageIotdeviceconnect = (params?: any) => 
	request({
			url: Api.PageIotdeviceconnect,
			method: 'post',
			data: params,
		});

// 详情设备数据采集
export const detailIotdeviceconnect = (id: any) => 
	request({
			url: Api.DetailIotdeviceconnect,
			method: 'get',
			data: { id },
		});


